
export default {
    id: "BuyMedicineDetailEntity",
    returnTotal: true,
    modelFile: "buymedicine/dataset/BuyMedicineDetailEntity.xml",
    //主从配置
    relation: {
        selfField: ["buy_order_id"],
        parentField: ["prescription_id"]
    },
    sortFields: [
        "record_id",
        "record_status",
        "create_by",
        "create_date",
        "update_by",
        "update_date",
        "buy_order_id",
        "drug_code",
        "drug_name",
        "specifications",
        "drug_in_store",
        "amount",
        "price",
        "drug_brand",
        "medicare_type",
        "procompany",


    ],
    fields: {
        record_id: {
            name: "record_id", //字段ID
            label: "记录编号", //字段描述
            dbtype: "dbString", //数据类型

        },

        record_status: {
            name: "record_status", //字段ID
            label: "状态", //字段描述
            dbtype: "dbInt", //数据类型
            length: 25,
            readonly: true,
        },
        create_by: {
            name: "create_by", //字段ID
            label: "创建人", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        create_date: {
            name: "create_date", //字段ID
            label: "创建时间", //字段描述
            dbtype: "dbDate", //数据类型
            readonly: true,

        },
        update_by: {
            name: "update_by", //字段ID
            label: "更新人", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        update_date: {
            name: "update_date", //字段ID
            label: "更新时间", //字段描述
            dbtype: "dbDate", //数据类型
            readonly: true,
        },
        buy_order_id: {
            name: "buy_order_id", //字段ID
            label: "购药订单编号", //字段描述
            dbtype: "dbString", //数据类型   
            readonly: true,
        },

        drug_code: {
            name: "drug_code", //字段ID
            label: "药品条码", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        drug_name: {
            name: "drug_name", //字段ID
            label: "药品名称", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        specifications: {
            name: "specifications", //字段ID
            label: "规格", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        drug_in_store: {
            name: "drug_in_store", //字段ID
            label: "药品店内编码", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },

        amount: {
            name: "amount", //字段ID
            label: "数量", //字段描述
            dbtype: "dbInt", //数据类型
            readonly: true,
        },

        price: {
            name: "price", //字段ID
            label: "单价", //字段描述
            dbtype: "dbFloat", //数据类型
            readonly: true,
        },
        money: {
            name: "money", //字段ID
            label: "金额", //字段描述
            dbtype: "dbFloat", //数据类型
            readonly: true,
        },
        drug_brand: {
            name: "drug_brand", //字段ID
            label: "品牌", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        medicare_type: {
            name: "medicare_type", //字段ID
            label: "医保类别", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        procompany: {
            name: "procompany", //字段ID
            label: "生产厂家", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },

    }
}
